package main

import "fmt"

// 语法糖保证结构体还是结构体指针都能实现继承
type name struct {
	name string
}

type Student struct {
	*name
}

func (name name) GetName() string {
	return name.name
}

func main() {
	s := Student{
		name: &name{
			name: "hello",
		},
	}

	fmt.Println(s.GetName())

}
